<?php

/**
 * @Description    角色验证
 * @Author         songgy <Email:songgy@liuniukeji.com>
 * @Copyright      山东艾思软件科技有限公司(https://www.aisisofit.cn)
 * @Date           2019/2/22
 * @CreateBy       PhpStorm
 */

namespace app\core\validate;

use think\Validate;

class CoreRole extends Validate {
    protected $rule = [
        'name'  => 'require|max:50',
        'desc'  => 'max:200',
        'rules' => 'max:16000',
        'sort'  => 'number|between:0,99999',
    ];

    protected $message = [
        'name.require' => '名称不能为空',
        'name.max'     => '名称太长了',
        'desc'         => '描述内容过多'
    ];
}
